<?xml version="1.0" encoding="windows-1250"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:for-each select="abeceda/*">
<xsl:choose>
<xsl:when test=".='A'">
<xsl:value-of select="."/>
<xsl:text>(první písmeno), </xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test=".='Z'">
<xsl:value-of select="."/>
<xsl:text>(poslední písmeno)</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="."/>,
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>